<style tyle="text/css">
  .redWord {
    color: #F00
  }
</style>
<div class="bg-light lter b-b wrapper-md">
    <h1 class="m-n font-thin h3">出境游管理</h1>
  </div>
  <div class="panel panel-default">
    <div class="panel-body">
      <div class="col-lg-4">
        <div class="input-group" >
          <div class="input-group-btn" >
            <span class="btn btn-default">游团名称</span>
          </div>
          <input type="text" class="form-control" ng-model="searchform.group_name">
        </div>
      </div>
      <div class="col-lg-2">
        <button class="btn btn-success" ng-click="getTravelList()">立即搜索</button>
      </div>
      <div class="col-lg-2 pull-right">
        <button class="btn btn-primary btn-block" ng-click="addTravel()">添加出境游</button>
      </div>
    </div>
  
    <div class="panel-body">
      <!-- 网络太差, 画圈等 -->
      <h3 class="col-sm-12 text-center" ng-show="searchform.loading">
        <i class="fa fa-spin fa-spinner hide show inline"></i>
      </h3>
  
      <table class="table table-striped table-bordered" ng-show="!searchform.loading">
        <thead>
          <tr>
            <th class="col-md-1 text-center">创建机构</th>
            <th class="col-md-1 text-center">游团名称</th>
            <th class="col-md-1 text-center">游团编号</th>
            <th class="col-md-1 text-center">创建时间</th>
            <th class="col-md-1 text-center">状态</th>
            <th class="col-md-1 text-center">操作</th>
          </tr>
        </thead>
        <tbody>
          <tr ng-repeat="info in list">
            <td>{{info.company_name}}</td>
            <td>{{info.group_name}}</td>
            <td class="text-center">{{info.group_code}}</td>
            <td class="text-center">{{info.create_time}}</td>
            <td class="text-center">{{statusInfo['ss'+info.status]}}</td>
            <td class="text-center">
              <button type="button" class="btn btn-info btn-xs" ng-show="info.status!='0'" ng-click="getInfo(info)">查看</button>
              <button type="button" class="btn btn-info btn-xs" ng-show="info.status=='0'" ng-click="update(info)">修改</button>
              <button type="button" class="btn btn-info btn-xs" ng-show="info.status=='0'" ng-click="setTravelStatus(info,'1')">上报</button>
              <button type="button" class="btn btn-danger btn-xs" ng-show="info.status=='1'" ng-click="setTravelStatus(info, '0')">撤销</button>
              <button type="button" class="btn btn-primary btn-xs" ng-show="info.status=='2'" ng-click="onSale(info)">开团</button>
              <button type="button" class="btn btn-danger btn-xs" ng-show="info.status=='0' || info.status=='3'" 
               ng-click="delete(info.group_code, $index)">删除</button>
            </td>
          </tr>
        </tbody>
      </table>
    </div>
  
  </div>
  